<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var regexp = new RegExp("^ming","gi")
			// g 全局匹配
			// i 大小写忽略
			// m 多行
			var regexp=/^ming/gi
			
			var str="mingsoft"
			console.log(regexp.test(str))
			
			
			var str2="a1b01111a2b02"
			re=/a(\d)b(\d(2))/gi
			
			document.write(regexp.input)
			document.write("<br />")
			document.write("regexp.lastMath:"+regexp.lastMatch)
			document.write("<br />")
			document.write("regexp.lastParen:"+regexp.lastParen)
			document.write("<br />")
			document.write("regexp.leftContent:"+regexp.leftContent)
			document.write("regexp.rightContent:"+regexp.rightMatch)
			
			document.write(re.global)
			document.write("<br />")
						document.write(re.ignoreCase);
						document.write("<br />")
						document.write(re.source);
			
		</script>
	</body>
</html>
